package com.yunxiao.cloud.auth.server.mapper;

import com.yunxiao.cloud.auth.server.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 系统用户表 Mapper 接口
 * </p>
 *
 * @author yunxiao
 * @since 2020-02-18
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 根据用户名获取系统用户
     * @param username 用户名
     * @return
     */
    SysUser getUserByName(String username);
}
